package com.blb.service.impl;

import com.blb.entity.CargoArea;
import com.blb.mapper.CargoAreaMapper;
import com.blb.service.ICargoAreaService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author HuaHao
 * @since 2019-11-16
 */
@Service
public class CargoAreaServiceImpl extends ServiceImpl<CargoAreaMapper, CargoArea> implements ICargoAreaService {

    @Resource
    private CargoAreaMapper cargoAreaMapper;

    @Override
    public List<Map<String,Object>>  findAllCargoArea(int start, int length,String wareId, String goodsName, String deteTime,String companyId) {
        return cargoAreaMapper.findAllCargoArea(start,wareId,length,goodsName,deteTime,companyId);
    }

    @Override
    public int count(String goodsName, String deteTime,String wareId) {
        return cargoAreaMapper.count(wareId,goodsName,deteTime);
    }

    @Override
    public List<CargoArea> findByWareId(String wareId) {
        return cargoAreaMapper.findByWareId(wareId);
    }

    @Override
    public List<CargoArea> findAllCarByWareId(CargoArea cargoArea) {
        return cargoAreaMapper.findAllCarByWareId(cargoArea);
    }

    @Override
    public int countCargoNum(String id) {
        return cargoAreaMapper.countCargoNum(id);
    }

    @Override
    public void AddCargoArea(CargoArea cargoArea) {
        cargoAreaMapper.AddCargoArea(cargoArea);
    }

    @Override
    public List<Integer> findAllId() {
        return cargoAreaMapper.findAllId();
    }

    @Override
    public void UpdateCargo(CargoArea cargoArea) {
        cargoAreaMapper.UpdateCargo(cargoArea);
    }

    @Override
    public void UpdateWareStatus(CargoArea cargoArea) {
        cargoAreaMapper.UpdateWareStatus(cargoArea);
    }

    @Override
    public void UpdateWareStatus1(CargoArea cargoArea) {
        cargoAreaMapper.UpdateWareStatus1(cargoArea);
    }


}
